package week07.data_obs2;

/**
 * Created by zhangxiaokun on 2018/3/13.
 */
public class ObsTest {
    public static void main(String[] args) {
        NumsObservable num = new NumsObservable();
        num.addObserver(new OddObserver());
        num.addObserver(new EvenObserver());

        for (int i = 0; i < 10; i++) {
            num.setData(i);
        }
    }
}
